package study.designpattern.adapter;

public class MainAdapter {
    public static void main(String[] args) {
        Mp3MiniSD mp3 = new Mp3MiniSD();
        MiniSDCard mini  = new MiniSDCard();
        mp3.setMiniSDCard(mini);
        mp3.play();
        // but now i have buy a new microSD card, tiny than mini, what should i do???
        MicroSDCard microSDCard = new MicroSDCard();
        MiniSDCardWraper miniSDCardWraper = new MiniSDCardWraper();
        miniSDCardWraper.setMicroSDCard(microSDCard);
        
        mp3.setMiniSDCard(miniSDCardWraper);
        mp3.play();
    }
}
